package com.azzcs.juc.demo3;

import java.util.concurrent.TimeUnit;

/**
 * @Author: wzg
 * @Date: 2021/6/15 上午10:39
 */
public class Main {

    private static Object obj = new Object();
    public static void main(String[] args) throws InterruptedException {
        synchronized (obj){
            obj.wait(2);
        }
        TimeUnit.SECONDS.sleep(5);

    }
}
